<?php
    $this->headTitle($this->translator('enterprise_list'));

    $this->headScript()
        ->appendFile($this->APP_STATIC_SERVER.'/js/jquery.cycle/jquery.cycle.all.min.js');
        ;
?>
<style>
    .col_50l{ float:left; width:48%; }

    .col_50r{ float:right; width:48%; }

    .subrow{ padding-bottom:10px; display:table; width:100%; }

    .col_70l{ float:left; width:69.2%; }

    .col_30r{ float:right; width:30%; }

    .col_30l{ float:left; width:29%; }

    .col_70r{ float:right; width:70%; }

    .caption_box{ margin-bottom:5px; background:#EFEDED none repeat; }

    .caption_box span{ padding:8px; text-transform:uppercase; }

    .box_33l{ float:left; width:33.3%; background:#EFEDED none repeat; }

    .subbox_33l{ background:#FFFFFF; margin:5px 0px 10px 5px; padding:5px }

    #ad_nav { position:absolute; top:195px; left:347px; width:120px; text-align:right; z-index:1000;}

    #ad_nav a { border: 1px solid #ccc; background: #fc0; text-decoration: none; margin: 0 3px; padding: 3px 5px;  }

    #ad_nav a.activeSlide { background: #ea0 }

    #ad_nav a:focus { outline: none; }

    ul.latest_blog li { padding-top:2px; }
</style>
<?php
    $skin_url = $this->APP_STATIC_SERVER . '/skins/'. $this->APP_TEMPLATE . '/'. $this->APP_SKIN;
?>
<div class="grid_12 pb10">
    <!--Search form-->
    <form action="<?php echo $this->url(array(), 'bizprofile_enterprise_search')?>" method="POST" id="searchForm">
        <div style="background:#EFEDED none repeat;">
            <div style="padding:10px;">
                <input name="keyword" type="text" style="width:400px; height:15px;padding:3px 0" />
                <input type="submit" value="<?php echo $this->translator('enterprise_btn_search');?>" style="height:24px; padding:0 0 4px" />
                <a href="<?php echo $this->url(array(), 'bizprofile_enterprise_search_advanced')?>"><?php echo $this->translator('enterprise_search_advanced');?></a>
            </div>
        </div>
    </form>
    <!--End search form-->
</div>
<div class="grid_12">
    <div class="col_70l">
        <div class="subcolumns pb10">
            <div class="col_30l">
               <!--Dropdown menu-->
               <?php echo $this->widget('bizprofile','blog',array()); ?>
            </div>

            <div class="col_70r" style="position:relative;">
                <!--<img width="465" height="215" src="http://localhost/hoalan/images/advertise/products/0_sanpham2.jpg" />-->
                <div id="advertise">
                    <?php foreach($this->arrImage as $key=>$image):?>
                        <?php if($image):?>
                        <div style="width:465px; height:215px; overflow:hidden;">
                            <a href="<?php echo $this->arrLink[$key];?>"><img src="<?php echo $image;?>" width="465" height="215" /></a>
                        </div>
                        <?php endif;?>
                    <?php endforeach;?>
                </div>
            </div>

        </div>
        <div class="subcolumns ">
            <!--Advertise box-->
            <?php echo $this->widget('bizprofile','advertise',array()); ?>
        </div>
        <div class="subcolumns ">
            <!--Advertise box-->
            <?php echo $this->widget('bizprofile','latest',array()); ?>
        </div>		
    </div>
    <div class="col_30r">
        <!--Most viewed box-->
        <?php echo $this->widget('bizprofile','mostviewed',array()); ?>

        <!--Most buy box-->
        <?php echo $this->widget('bizprofile','mostbuy',array()); ?>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function() {
    $('#advertise')
    .before('<div id="ad_nav">')
    .cycle({
        fx:     'fade',
        timeout: 5000,
        delay:  -1000,
        pager:  '#ad_nav'
    });
});
</script>

